// 引入 Pinia
import { createPinia } from 'pinia'
import { piniaPluginPersistedstate } from '@/stores/persist'
import App from './App'
import '@/utils/utils'
import { createSSRApp } from 'vue'
export function createApp() {
  // 实例化Pinia
  const pinia = createPinia()
    // Pinia 持久化插件
    pinia.use(piniaPluginPersistedstate)
  const app = createSSRApp(App)

    // 传递给项目应用
    app.use(pinia)
  return {
    app,
  }
}

